package com.booklove.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class DonatebookVO implements Serializable {

    /*
    donatebooks部分项目信息
     */

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "捐赠标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "捐赠发言")
    @TableField("recommend")
    private String recommend;

    @ApiModelProperty(value = "捐赠状态-根据数据字典显示")
    @TableField("donate_state")
    private Integer donateState;

    @ApiModelProperty(value = "受捐赠人")
    @TableField("revceived_user_id")
    private String revceivedUserId;

    @ApiModelProperty(value = "捐赠人")
    @TableField("user_id")
    private Integer userId;
//
//    @ApiModelProperty(value = "捐赠地点")
//    @TableField("address_id")
//    private String addressId;

    @ApiModelProperty(value = "此捐赠对应的书本Id")
    @TableField("book_id")
    private Integer bookId;

    @ApiModelProperty(value = "捐赠书时间")
    @TableField("donate_time")
    private LocalDateTime donateTime;

    /*
    书本实体信息
     */
    @ApiModelProperty(value = "书名")
    private String name;

    @ApiModelProperty(value = "封面")
    private String cover;

    @ApiModelProperty(value = "内容描述")
    private String description;

    @ApiModelProperty(value = "书本的ISBN码")
    private String isbn;

    @ApiModelProperty(value = "内容描述")
    private String content;

    @ApiModelProperty(value = "书本标签（冗余中）")
    private String label;

}
